package com.lzy;

import com.lzy.portRandom.StartCommand;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.oas.annotations.EnableOpenApi;

@EnableCaching
@SpringBootApplication
@MapperScan("com.lzy.**.mapper")
//开启数据库事务
@EnableTransactionManagement
@EnableOpenApi
@EnableDiscoveryClient
@EnableFeignClients
public class ImApplication {
    public static void main(String[] args) {
        new StartCommand(args);
        SpringApplication.run(ImApplication.class, args);
    }
}


